package com.baidu.project.chart6;

public class ScreenModeController {
    private ModeBuilder mb;

    public ScreenModeController() {
    }

    public void setModeBuilder(ModeBuilder mb) {
        this.mb = mb;
    }

    public MainScreen construct(ModeBuilder mb) {
        mb.buildMenu();
        mb.buildPlayList();
        mb.buildMainWindow();
        mb.buildControlBar();
        MainScreen ms = mb.getScreen();
        return ms;
    }
}